using NavMeshPlus.Components;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NavMesh : MonoBehaviour
{
    public NavMeshSurface surface2D;
    void Start()
    {
        surface2D.BuildNavMeshAsync();
    }

    private void Update()
    {
        surface2D.RemoveData();
        surface2D.BuildNavMesh();
    }
}
